var url = {
  // login: 'user/login.json',
  show: 'index/show',
  vipshow: 'index/vipshow',
  about: 'index/about',

  geturl: 'wechat/geturl',
  wxlogin: 'wechat/wxlogin',
  wxconfig: 'wechat/wxconfig',

  search: 'goods/search',
  goodslist: 'goods/goodslist',
  goodsdetail: 'goods/goodsdetail',
  vipgoodslist: 'goods/vipgoodslist',
  vipgoodsdetail: 'goods/vipgoodsdetail',
  vipgoodsdetail2: 'goods/vipgoodsdetail2',
  comment: 'goods/comment',
  uploadPicBase: 'goods/uploadPicBase',

  addaddress: 'address/addaddress',
  addresslist: 'address/addresslist',
  useraddress: 'address/useraddress',
  getdefaultaddr: 'address/getdefaultaddr',
  setdefaultaddr: 'address/setdefaultaddr',
  deleteaddress: 'address/deleteaddress',

  sendsms: 'user/sendsms',
  register: 'user/register',
  login: 'user/login',
  forgetpwd: 'user/forgetpwd',
  me: 'user/me',
  bindcode: 'user/bindcode',


  orderlist: 'order/orderlist',
  detail: 'order/detail',
  receipt: 'order/receipt',
  delete: 'order/delete',
  cancel: 'order/cancel',
  payment: 'order/payment',

  express: 'order/express',
  confirm: 'order/confirm',
  vipconfirm: 'order/vipconfirm',
  submit: 'order/submit',
  vipsubmit: 'order/vipsubmit',

  cartlist: 'cart/cartlist',
  addcart: 'cart/addcart',
  setgoodsnum: 'cart/setgoodsnum',

  // 购物车与订单
  cart_update: 'cart/setgoodsnum', //数量更新
  cart_dele: 'cart/deletecart', //删除
  order_confirm: 'order/confirm', //结算
  order_submit: 'order/submit', //提交付款
  order_detail: 'order/detail', //订单详情

  // 分类
  category_list: 'goods/category',

  update: 'favour/update',
  favlist: 'favour/favlist',
  deleteFavour: 'favour/delete',


  //----------------------新接口---------------------
  level_list: 'home/levelList.json'


};
/* var host = 'http://city.asrobot.cn/index.php/api/'; */
var host ='http://192.168.31.135:8080/index.php/api/'

for (var key in url) {
  if (url.hasOwnProperty(key)) {
    url[key] = host + url[key];

  }
}
export default url;
